from flask import Flask, make_response


def run():
    app = Flask("Wallpaper Server")

    @app.route("/example.zip", methods=["GET"])
    def example_zip_handler():
        response = make_response(open("./dist/example.zip", "rb").read())
        response.headers["Content-Type"] = "application/zip"
        return response

    @app.route("/genshin-sentence.zip", methods=["GET"])
    def genshin_sentence_zip_handler():
        response = make_response(open("./dist/genshin-sentence.zip", "rb").read())
        response.headers["Content-Type"] = "application/zip"
        return response
    app.run("0.0.0.0",2023)


if __name__ == "__main__":
    run()
